package com.atguigu.builder.improve;

public class Client {
    public static void main(String[] args) {
        //盖普通房子
//        CommonHouse commonHouse = new CommonHouse();
//        //准备创建房子的挥指者
//        HouseDirector houseDirector = new HouseDirector(commonHouse);
//        //完成盖房子，返回产品
//        House house = houseDirector.constructHouse();

        //盖高楼
        HighBuilding commonHouse = new HighBuilding();
        //准备创建房子的挥指者
        HouseDirector houseDirector = new HouseDirector(commonHouse);
        //完成盖房子，返回产品
        House house = houseDirector.constructHouse();
    }
}
